package cn.zzqayy.steward.gateway.mapper;

import cn.zzqayy.steward.gateway.dto.UserDto;
import cn.zzqayy.steward.gateway.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * (BUser)表数据库访问层
 *
 * @author makejava
 * @since 2020-07-02 10:56:48
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过用户名查询角色
     * @param username
     * @return
     */
    UserDto findUserDtoByUsername(@Param("username") String username);

}